import request from "../../router/axios.js";

export function returnGoodsFetchList(obj) {
  return request({
    url: "/eims/eimsReturnGoods/page",
    method: "get",
    params: obj
  });
}

// 按照ID查询
export function returnGoodsById(id) {
  return request({
    url: "/eims/eimsReturnGoods/" + id,
    method: "get"
  });
}

// 新增
export function saveNewReturnGoodsOrder(obj) {
  return request({
    url: "/eims/eimsReturnGoods",
    method: "post",
    data: obj
  });
}

// 删除
export function delReturnGoodsOrder(returnBillId) {
  return request({
    url: "/eims/eimsreturngoods/" + returnBillId,
    method: "delete"
  });
}

// 修改
export function putReturnGoodsObj(obj) {
  return request({
    url: "/eims/eimsreturngoods",
    method: "put",
    data: obj
  });
}
